﻿Public Class AnswerGateway
    Inherits DataGateway

    Protected Overrides ReadOnly Property FindAllQuery As String
        Get
            Return "SELECT * FROM QuestionAnswersView"
        End Get
    End Property

    Protected Overrides ReadOnly Property DeleteQuery As String
        Get
            Return "DELETE FROM Answer"
        End Get
    End Property

    Protected Overrides ReadOnly Property SiteUserQuery() As String
        Get
            Return "SELECT SiteUser.* " &
                   "FROM Answer LEFT JOIN SiteUser " &
                   "ON Answer.UserID=SiteUser.ID " &
                   "WHERE Answer.ID=@ID"
        End Get
    End Property

End Class
